-- GENERATED SPELL FOR [Defias Rogue Wizard] --


function spell0_474(pUnit, Event) --@Frost Armor,Self--
pUnit:FullCastSpellOnTarget(12544,pUnit)
pUnit:RegisterEvent('Sorts_474', 0, 1)
end

function spell1_474(pUnit, Event) --@Frostbolt,n/a--
pUnit:FullCastSpellOnTarget(13322,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_474', 5000, 1)
end

function Sorts_474(pUnit, Event)
local choix_sorts_474 = math.random(0, 1)
if choix_sorts_474 == 0 then
pUnit:RegisterEvent('spell0_474', 1, 1)
end
if choix_sorts_474 == 1 then
pUnit:RegisterEvent('spell1_474', 1, 1)
end
end

function mob474_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_474', math.random(1500, 3000), 1)
end

function mob474_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob474_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob474_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(474, 1, 'mob474_Action')
RegisterUnitEvent(474, 2, 'mob474_Leave')
RegisterUnitEvent(474, 3, 'mob474_Kill')
RegisterUnitEvent(474, 4, 'mob474_Die')
